<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript">
function initLogs()
{
	jgrouse.log.addHandler(new jgrouse.logHandlers.ConsoleLog());
}

jgrouse_config = 
{
	initLogs : initLogs,
	logLevel : 'INFO',
	nologs : true,
	debug : true
}
</script>

<script type="text/javascript" src='../src/jgrouse.js'></script>
<script type="text/javascript" src='../src/log.js'></script>
<script type="text/javascript" src='../src/classloader.js'></script>

<script type="text/javascript">
	jgrouse.ClassLoader.instance.setDeferLoading(true);
	jgrouse.module(
	{
		name : 'jgrouse.module1',
		requires : ['jgrouse.module2', 'jgrouse.browser.Browser'],
		body : function(salt)
		{
			alert('module1 initialized');
		}
		
	}
	);
	jgrouse.module(
	{
		name : 'jgrouse.module2',
		body : function(salt)
		{
			alert('module2 initialized');
		}
	}
	);
	jgrouse.ClassLoader.instance.setDeferLoading(false);
	
</script>

</head>
<body>
	This test case shows how to use setDeferLoading method of ClassLoader

</body>
</html>